#!/bin/sh

echo 'load data from dhfs...'
currDate=`date +%Y%m%d`
echo "currentTime is : '$currDate'"
/opt/lagou/servers/hive-2.3.7/bin/hive -e "USE default;LOAD DATA INPATH '/user_clicks/$currDate/*' OVERWRITE INTO TABLE user_clicks PARTITION (dt='$currDate');"
